﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Classes.sim {
    import Classes.*;
    import Classes.sim.*;

    class RoadDef {

        public var road:Road;
        public var sidewalk:Sidewalk;
        public var x:int;
        public var y:int;
        public var isSidewalk:Boolean = false;
        public var graph:RoadGraph;
        public var roads:Array;
        public var buildings:Array;
        var distance:Number;
        var backPtr:RoadDef;
        var gScore:Number;
        var hScore:Number;
        public var fScore:Number;

        public function RoadDef(_arg1:Road, _arg2:int, _arg3:int, _arg4:Boolean, _arg5:Sidewalk=null){
            this.road = _arg1;
            this.sidewalk = _arg5;
            this.isSidewalk = _arg4;
            this.x = _arg2;
            this.y = _arg3;
            this.roads = [];
            this.buildings = [];
            this.graph = null;
            this.distance = 0;
        }
        public static function extractRoad(_arg1:RoadDef, ... _args):Road{
            return (_arg1.road);
        }

        public function get tile():MapResource{
            return ((this.road) ? this.road : this.sidewalk);
        }

    }
}//package Classes.sim 
